package com.mdb.open.trade.domain.po.trade;

/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: TfTradeFileExtendInfoService.java
* Author:   you.yichao
* Date:     2019-08-08
* History:
* <author>          <time>          <version>          <desc>
* you.yichao         2019-08-08          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/


import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.open.common.enums.trade.type.TradeSourceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* 类描述：
*  贸易档案信息表实体类
*
* @author you.yichao
* @date 2019-08-08
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tf_trade_file_extend_info")
public class TradeFileExtendInfo extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 唯一性Id
    */
    @ApiModelProperty(value = "唯一性Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 融资档案编号
    */
    @ApiModelProperty(value = "融资档案编号")
    @TableField("trade_file_no")
    private String tradeFileNo;

    /**
    * 业务编号
    */
    @ApiModelProperty(value = "业务编号")
    @TableField("business_no")
    private String businessNo;

    /**
    * 客户编码
    */
    @ApiModelProperty(value = "客户编码")
    @TableField("customer_code")
    private String customerCode;

    /**
    * 客户名称
    */
    @ApiModelProperty(value = "客户名称")
    @TableField("customer_name")
    private String customerName;

    /**
    * 商户客户编码
    */
    @ApiModelProperty(value = "商户客户编码")
    @TableField("mcustomer_code")
    private String mcustomerCode;

    /**
    * 商户编号
    */
    @ApiModelProperty(value = "商户编号")
    @TableField("merchant_no")
    private String merchantNo;

    /**
    * 商户名称
    */
    @ApiModelProperty(value = "商户名称")
    @TableField("merchant_name")
    private String merchantName;

    /**
    * 定金金额
    */
    @ApiModelProperty(value = "定金金额")
    @TableField("deposit_amount")
    private BigDecimal depositAmount;

    /**
    * 定金币种
    */
    @ApiModelProperty(value = "定金币种")
    @TableField("deposit_ccy")
    private String depositCcy;

    /**
    * 定金比例
    */
    @ApiModelProperty(value = "定金比例")
    @TableField("deposit_percent")
    private BigDecimal depositPercent;

    /**
    * 信保金额
    */
    @ApiModelProperty(value = "信保金额")
    @TableField("insurance_amount")
    private BigDecimal insuranceAmount;

    /**
    * 信保币种
    */
    @ApiModelProperty(value = "信保币种")
    @TableField("insurance_ccy")
    private String insuranceCcy;

    /**
    * 信保赔付比例
    */
    @ApiModelProperty(value = "信保赔付比例")
    @TableField("insurance_percent")
    private BigDecimal insurancePercent;

    /**
    * 状态
    */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
    * 来源类别
    */
    @ApiModelProperty(value = "来源类别")
    @TableField("source_type")
    private TradeSourceTypeEnum sourceType;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    * 乐观锁版本号
    */
    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    private Integer version;

    /**
    * 删除标识
    */
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private boolean deleted;

}
